package com.opencloud.iot.client.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 每日睡眠结果数据
 * @author yeyong
 */
@TableName("iot_daysleepresult")
public class IotDaySleepResult implements Serializable {


            /**
             * 自增长Id

             */
            @ApiModelProperty(value = "自增长Id ")
            @TableId(value = "id", type = IdType.AUTO)
            private Integer id;

            /**
             * 手环地址
            */
            @ApiModelProperty(value = "手环地址")
            private String watchmac;

            /**
             * 日期
            */
            @ApiModelProperty(value = "日期")
            private Date thisdate;

            /**
             * 睡眠时长
            */
            @ApiModelProperty(value = "睡眠时长")
            private Double sleeptime;

            /**
             * 入睡时间
            */
            @ApiModelProperty(value = "入睡时间")
            private Date intime;

            /**
             * 醒来时间
            */
            @ApiModelProperty(value = "醒来时间")
            private Date outtime;

            /**
             * 手环状态
            */
            @ApiModelProperty(value = "手环状态")
            private Integer watchstatus;

            /**
             * 睡眠结论
            */
            @ApiModelProperty(value = "睡眠结论")
            private String sleepresult;

    /**
     * 睡眠状态
     */
    @ApiModelProperty(value = "睡眠状态")
    private Integer slpstatus;

    /**
     * 是否断续
     */
    @ApiModelProperty(value = "是否断续")
    private Integer isbreak;

    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updatetime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWatchmac() {
        return watchmac;
    }

    public void setWatchmac(String watchmac) {
        this.watchmac = watchmac;
    }

    public Date getThisdate() {
        return thisdate;
    }

    public void setThisdate(Date thisdate) {
        this.thisdate = thisdate;
    }

    public Double getSleeptime() {
        return sleeptime;
    }

    public void setSleeptime(Double sleeptime) {
        this.sleeptime = sleeptime;
    }

    public Date getIntime() {
        return intime;
    }

    public void setIntime(Date intime) {
        this.intime = intime;
    }

    public Date getOuttime() {
        return outtime;
    }

    public void setOuttime(Date outtime) {
        this.outtime = outtime;
    }

    public Integer getSlpstatus() {
        return slpstatus;
    }

    public void setSlpstatus(Integer slpstatus) {
        this.slpstatus = slpstatus;
    }

    public Integer getWatchstatus() {
        return watchstatus;
    }

    public void setWatchstatus(Integer watchstatus) {
        this.watchstatus = watchstatus;
    }

    public String getSleepresult() {
        return sleepresult;
    }

    public void setSleepresult(String sleepresult) {
        this.sleepresult = sleepresult;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getIsbreak() {
        return isbreak;
    }

    public void setIsbreak(Integer isbreak) {
        this.isbreak = isbreak;
    }

    @Override
    public String toString() {
        return "IotSleepresult{" +
                "id=" + id +
                ", watchmac=" + watchmac +
                ", thisdate=" + thisdate +
                ", sleeptime=" + sleeptime +
                ", intime=" + intime +
                ", outtime=" + outtime +
                ", watchstatus=" + watchstatus +
                ", sleepresult=" + sleepresult +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", isbreak=" + isbreak +
                "}";
    }
}
